-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classic Theme Helper: Load relevant theme compat functionality from package #41598
base: trunk
Are you sure you want to change the base?
Classic Theme Helper: Load relevant theme compat functionality from package #41598
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Classic Theme helper plugin plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 1 file.
|
… to prevent loading conflicts with the Jetpack module filter which will remain.
Fixes https://github.com/Automattic/vulcan/issues/389
Proposed changes:
modules/theme-tools.php
toclassic_theme_helper_theme_compat_files
. This is to prevent loading issues that were obvious on Simple sites without the name change due to a file that hooks into the existing filter for those sites. Renaming the filter in the package prevents conflicts and continues to allow extensibility.Other information:
Jetpack product discussion
https://github.com/Automattic/vulcan/issues/389
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
Test on self-hosted (testing locally or with the beta tester plugin), or WoA (using the beta tester plugin). The changes in this PR have no bearing for Simple sites but we can test that they are not affected - so test using the commands in the generated comment below on a sandboxed Simple site. On WoA and Simple the below implies both branches are checked out - if only one on WoA this just means we'll be loading only via that branch parent, but all functionality would still work).
Some random tests to confirm functionality is now loading via the Classic Theme Helper package:
add_action( 'customize_register', 'twentyfourteen_customizer_default' );
inmodules/theme-tools/compat/twentyfourteen.php
(If you load only via the Jetpack Mu WPcom plugin when testing WoA, commenting out the module file paths will prevent functionality. )/wp-admin/admin.php?page=jetpack#performance
), and then opening up page source on the the post front-end. You should see reference tojetpack-responsive-videos-css
orresponsive-videos.css
(orresponsive-videos.js
on WoA). On Simple, the best option is to look for thejetpack-video-wrapper
class in the div wrapping the video - for Simple we just want to confirm it is still working.To confirm that we're still also reading the module file functions that are not duplicated in the Classic Theme Helper package:
twentyfifteen-jetpack-css
script. It should be the modules file path.For Twenty Fourteen, Sixteen, Nineteen, Twenty, Twenty One, it's the same -
twentyfourteen-jetpack-css
etc.twentyfifteen-jetpack
etc.Jetpack_Geo_Location
deprecation notice in error logs.